<#escape x as x?j_string>
	{
		"entityName" : "user",
		<#if paged>
			"page" : ${page.number?c},
			"totalPages" : ${page.totalPages?c},
			"hasContent" : ${page.hasContent()?string},
			"firstPage" : ${page.firstPage?string},
			"hasPreviousPage" : ${page.hasPreviousPage()?string},
			"hasNextPage" : ${page.hasNextPage()?string},
			"lastPage" : ${page.lastPage?string},
			
			<#assign entities = page.content />
		</#if>
		"entities" : [
			<#if entities??>
				<#list entities as entity>
					{
						"id" : ${entity.id},
						"userName" : "${entity.userName}"
					}<#if entity_has_next>,</#if>
				</#list>
			</#if>
		]
	}
</#escape>
